package ru.pashkan.spring.controller;

import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.map.SerializationConfig;

import javax.annotation.PostConstruct;

public class CustomObjectMapper extends ObjectMapper {
    @PostConstruct
    private void init() {
        configure( SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS, false );
    }
}